 
<style>
	.goods{
		margin-left: 20px;
		margin-top: 30px;
		margin-bottom: 50px;
		width: 720px;
	}
	
	.search{
		float: left;
		margin-right: 30px;
	}
	.div1{
		width: 100%;
		height: 35px;
		line-height: 35px;
	}
	.div1 .text{
		font-weight: bold;
	}
	.div2{
		margin-top: 30px;
	}
	
	.table th{
		text-align: center;
		border: 1px solid #FFFFFF;
	}
	
</style>

<input type="hidden" name="roleId" id="roleId" value="<{$roleId}>" />

<div class="goods">
	<div class="div1">
		<div class="search">
			<span class="text">背包类型：</span> 
		<select name="good_type" id="good_type" href="#3">
			<{foreach from=$goodsTypeList item=item key=key}>
				<option value="<{$key}>" <{if $key == $good_type}>selected<{/if}> ><{$item}></option>
			<{/foreach}>
		</select>
		</div>
		
	</div>
	
	<div class="div2">
		<{if $role.state}>
		<table class="table table-striped">
			<tbody>
				<tr>
					<th>物品id</th>
					<th>物品名称</th>
					<th>所在背包</th>
					<th>物品数量</th>
					<th>是否绑定</th>
				</tr>
				<{if count($data)==0 }>
					<tr>
						<td colspan="5"><font color="red">暂无数据</font></td>
					</tr>
			    <{/if}>
				<{foreach from=$data item=item key=key}>
				<tr>
					<td><{$item.class_id}></td>
					<td><font color="<{$item.color}>"><{$item.name}></font></td>
					<td><{$item.back}></td>
					<td><{$item.num}></td>
					<td><{$item.bind}></td>
				</tr>
				<{/foreach}>
				
			</tbody>
		</table>
		<{else}>
        <div class="alert alert-warning" style="margin:0;" role="alert"><{$role.msg}></div>
        <{/if}>
	</div>
	
</div>